package com.mlh.service.impl;

import com.mlh.dao.impl.BookDaoImpl;
import com.mlh.service.BookService;

public class BookServiceImpl implements BookService {

    private BookDaoImpl bookDao;

    public BookServiceImpl(){
        System.out.println("BookServiceImpl构造器被调用");
    }

    public void save() {
        System.out.println("book service save ...");
        bookDao.save();
    }

    public BookDaoImpl getBookDao() {
        return bookDao;
    }

    public void setBookDao(BookDaoImpl bookDao) {
        this.bookDao = bookDao;
    }

    public void init(){
        System.out.println("BookServiceImpl的初始化方法被调用");
    }
}
